<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>新建应用</h2>
    </div>
    <form action="{:U()}" method="post" enctype="multipart/form-data" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">名称</label>
            <div class="controls">
                <input type="text" class="text input-large" name="appname">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">应用类别</label>
            <div class="controls">
                <select name="apptype" class="search-input" style="height: 30px;width:130px">
                    <option value="iOS端" selected="selected">iOS端</option>
                    <option value="Android端">Android端</option>
                    <option value="PC端">PC端</option>
                    <option value="web">web</option>
                </select>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">URL</label>
            <div class="controls">
                <input type="text" class="text input-large" name="appurl">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">应用环境</label>
            <div class="controls">
                <select name="appenvironment" class="search-input" style="height: 30px;width:130px">
                    <option value="DEV" selected="selected">开发环境</option>
                    <option value="PRODUCT">生产环境</option>
                    <option value="STAGING">测试环境</option>
                </select>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">应用权限</label>
            <input type="checkbox" name="approot[]" value="*">全部&nbsp;&nbsp;
            <input type="checkbox" name="approot[]" value="order">订单&nbsp;&nbsp;
            <input type="checkbox" name="approot[]" value="product">商品
        </div>
        <div class="form-item cf">
            <label class="item-label">简介</label>
            <div class="controls">
              <textarea name="about" rows=10 class="text input-large block"></textarea>
            </div>
        </div>
        <div class="form-item">
            <button class="btn submit-btn btn-ajax" id="submit" type="submit" target-form="form-horizontal">创 建</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);
                    return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
    </script>
</block>
